/*
 * $HeadURL: $
 * $Id: $
 * Copyright (c) 2012 by Wodensoft System, all rights reserved.
 */
package com.wodensoft.util;

/**
 * @author Woden
 * 
 */
public class Arithmetic {

    /**
     * 数字比较
     * 
     * @param n1
     * @param n2
     * @return
     */
    public static Long min(Long n1, Long n2) {
        if (n1 < n2) {
            return n1;
        } else {
            return n2;
        }
    }

    /**
     * 数字比较
     * 
     * @param n1
     * @param n2
     * @return
     */
    public static Long max(Long n1, Long n2) {
        if (n1 < n2) {
            return n2;
        } else {
            return n1;
        }
    }

}
